FROM jboss/base-jdk:8

ENV LANG en_US.UTF-8  
ENV LANGUAGE en_US:en  
ENV LC_ALL en_US.UTF-8
#设置jar包名称
ENV RENREN_FAST_JAR renren-fast.jar
 
#将所需文件放到容器中
COPY application.yml /opt/renren-fast/application.yml
COPY $RENREN_FAST_JAR /opt/renren-fast/$RENREN_FAST_JAR
USER root
COPY apache-jmeter-5.1.1 /root/.jmeter/apache-jmeter-5.1.1
COPY h2 /root/.h2
#RUN chmod -R 755 /opt/renren-fast
#设置容器启动时执行的命令
WORKDIR /opt/renren-fast
CMD ["java", "-jar", "renren-fast.jar"]
